package com.example.elasticsearch.repository;

import com.example.elasticsearch.data.User;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ESUserRepository extends ElasticsearchRepository<User, Long> {
    // 自定义查询方法，基于字段名自动生成查询逻辑
    List<User> findByUsername(String username);
}
